import request from '../../utils/request'

export const login = async (params: { user_id: number; password: string }) => {
  return request.post('/login', params)
}

export const getVehiclesInfoList = async () => {
  return request.get('/api/vehicle/vehicles_info')
}

export const getVehiclesCountByStatus = async()=>{
  return request.get('/api/vehicle/vehicles_status')
}

export const getDriversCountByStatus = async()=>{
  return request.get('/api/driver/drivers_status')
}

export const getVehiclesMileList = async()=>{
  return await request.get('/api/vehicle/vehicles_mile')
}

export const getVehiclesUseTimesList = async()=>{
  return await request.get('/api/vehicle/vehicles_use_time')
}